import Vue from "vue";
import Vuex from "vuex";
import showLoginModal from "./showLoginModal"; // 引入模态窗口
import loginStatus from "./loginStatus";
import showToast from "./showToast";
import userInfo from "./userInfo";

Vue.use(Vuex);

export default new Vuex.Store({
  state: {},
  getters: {},
  mutations: {},
  actions: {},
  modules: {
    showLoginModal, // 注册
    loginStatus,
    showToast,
    userInfo,
  },
});
